<!-- 我的页面首页中部内容 -->
<template>
  <div class="app">
    <!-- VIP模块 -->
    <!-- 间隔 -->
    <div style="height: 30px; display: flex; padding: 0;" @click="honor" >
      <div class="location" >
        <van-icon name="award-o" color="orange" size="24" >:
          <van-icon name="fire-o" color="orange" size="19"/>
          <van-icon name="fire-o" color="orange" size="19"/>
          <van-icon name="fire-o" color="orange" size="19"/>
          <van-icon name="fire-o" color="orange" size="19"/>
          <van-icon name="fire-o" color="orange" size="19"/>
        </van-icon>
      </div>
    </div>
    <div class="out_one">
      <div class="vip">
        <div class="position">
          <p class="govip">开通VIP服务</p>
          <p>享受大量VIP独享服务</p>
        </div>
        <div class="vip_enter">
          <router-link :to="{path: '/vip'}">
            <div>
              开始尝试
              <van-icon name="arrow" />
            </div>
          </router-link>
        </div>
      </div>
    </div>

    <!-- 内容栏 -->
    <div class="out_two">
      <div class="small_feature">
        <div class="feature_one">
          <router-link :to="{
            path: '/iphoneStore'
          }">
            <div>
              <van-icon name="shop-o" size="23" />
              <p>积分商城</p>
            </div>
          </router-link>
          <router-link :to="{path: '/setting'}">
            <div>
              <van-icon name="setting-o" size="23" />
              <p>设置</p>
            </div>
          </router-link>
        </div>
        <div class="feature_one">
          <router-link :to="{path:'/homeview/message/messagePage/userChat',query: {
            nickName: '一号客服娘',
            url: 'https://s1.328888.xyz/2022/09/23/IyJkC.png'
          }}">
            <div>
              <van-icon name="service-o" size="23" />
              <p>在线客服</p>
            </div>
          </router-link>
          <div>
            <div class="placeholder"></div>
          </div>
        </div>
        <div class="feature_one">
          <router-link to="/homeview/my/mypage/IntegralTaskTest">
            <div>
              <van-icon name="completed" size="23" />
              <p>积分任务</p>
            </div>
          </router-link>
          <div>
            <div class="placeholder"></div>
          </div>
        </div>
        <div class="feature_one">
          <router-link to="/homeview/my/mypage/edit">
          <div>
            <van-icon name="bookmark-o" size="23" />
            <p>编辑个人资料</p>
          </div>
          </router-link>
          <div>
            <div class="placeholder"></div>
          </div>
        </div>
      </div>
    </div>

    <!-- 创作中心 -->
    <div class="out_three">
      <div class="small_feature_last">
        <p>创作中心</p>
        <div class="feature_two">
          <div>
            <van-icon name="cluster-o" size="23" />
            <p>内容管理</p>
          </div>
          <div>
            <van-icon name="chart-trending-o" size="23" />
            <p>内容分析</p>
          </div>
          <div @click="lovers">
            <van-icon name="friends-o" color="orange" size="23" />
            <p style="color: orange">情侣空间</p>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  methods: {
    honor(){
      this.$router.push('/honor')
    },
    lovers(){
      this.$router.push('/homeview/user/LoversSpace/lovers')
    }
  }
};
</script>

<style scoped>
.app {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-content: center;
  /* 三个栏目的宽度 */
  height: 420px;
}

/* 第一部分 */
.out_one {
  display: flex;
  justify-content: center;
  align-content: center;
}
.vip {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(to right, #e9b7c6, #f37a9c);
  /* #ff356f  #eeabbe */
  width: 280px;
  border-radius: 15px;
  border: 1px solid #ebbfcd;
  box-shadow: 2px 3px 2px rgb(226, 222, 222);
}
.position {
  width: 154px;
  height: 63px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.location{
  margin: 0;
  border: 0px solid #ebbfcd;
  border-radius: 15px;
  margin-left: 40px;
  width: 80%;
  height: 25px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.govip {
  color: rgb(240, 248, 255);
  font-size: 18px;
  font-weight: bolder;
}
.vip_enter {
  display: flex;
  font-size: 14px;
}
/* 第二部分 */
.out_two {
  display: flex;
  justify-content: center;
  align-content: center;
}
.small_feature {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 280px;
  border-radius: 15px;
  border: 1px solid #cec8ca;
  box-shadow: 2px 3px 2px rgb(226, 222, 222);
}
.small_feature div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.feature_one {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100px;
}
.feature_one div {
  display: flex;
  flex-direction: column;
}
.feature_one p {
  font-size: 13px;
}
.placeholder {
  width: 32px;
  height: 37px;
}

/* 第三部分 */
.out_three {
  display: flex;
  justify-content: center;
  align-content: center;
}
.small_feature_last {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 280px;
  border-radius: 15px;
  border: 1px solid #cec8ca;
  box-shadow: 2px 3px 2px rgb(226, 222, 222);
  height: 75px;
}
.feature_two {
  display: flex;
  justify-content: space-around;
}
.feature_two div {
  display: flex;
  flex-direction: column;

  align-items: center;
}
.feature_two p {
  font-size: 13px;
}
</style>